#include <ESP8266WiFi.h>
#include <WiFiUdp.h>

static WiFiUDP Udp;
static const char *host = "test-turtle.codemao.cn";
static const unsigned short port = 443;


void sendUDP(){
   const char *msg = "Hello!";
  
  if (Udp.beginPacket(host, port) == 0) {
    Serial.println("Failed to begin packet (DNS or network issue?)");
  } else {
    Udp.write((uint8_t*)msg, strlen(msg));
    Udp.endPacket();
    Serial.printf("Sent UDP to %s:%d\n", host, port);
  }
  delay(1000);
}